package com.wa.service;

import com.wa.dto.OperatorInfoDto;
import com.wa.pojo.BasicAllchipsLogPojo;
import com.wa.util.CommUtils;

/**
 * 平台日志处理-模板抽象类
 *
 * @author: Homan Liang
 * @time: 2021/10/22 13:44
 */
public abstract class AbstractAllchipsLogProcessService {

    /**
     * 日志处理
     *
     * @param dataObject
     * @param basicAllchipsLogPojo
     * @param operatorInfoDto
     * @throws Exception
     */
    public void processLog(Object dataObject, BasicAllchipsLogPojo basicAllchipsLogPojo, OperatorInfoDto operatorInfoDto) throws Exception {
        // 公用检查
        if (CommUtils.isNull(dataObject)) {
            return;
        }
        if (CommUtils.isNull(basicAllchipsLogPojo)) {
            return;
        }
        // 日志处理
        this.processLog0(dataObject, basicAllchipsLogPojo, operatorInfoDto);
    }

    /**
     * 日志处理
     *
     * @param dataObject
     * @param basicAllchipsLogPojo
     * @param operatorInfoDto
     * @throws Exception
     */
    public abstract void processLog0(Object dataObject, BasicAllchipsLogPojo basicAllchipsLogPojo, OperatorInfoDto operatorInfoDto) throws Exception;
}
